<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<link href="<c:url value='/css/main.css'/>" rel="stylesheet"
	type="text/css" />
<fmt:setBundle basename="ApplicationResources" />
<title><fmt:message key="title.cruduser" /></title>
<script type="text/javascript" src="/phoenix/js/jquery-1.2.3.min.js"></script>
<script type="text/javascript" src="/phoenix/js/windowmsg/jquery.windowmsg-1.0.js"></script>
<script type="text/javascript" src="/phoenix/js/select-user.js"></script>
</head>
<body>
	<h1>
		<fmt:message key="label.cruduser" />
	</h1>
	<br />
	<br />
	<input type="hidden" value="${type}" id="type" name="type"/>
	<table class="borderAll">
		<tr>
			<th><fmt:message key="label.cruduser.firstName" /></th>
			<th><fmt:message key="label.cruduser.lastName" /></th>
			<th> Select </th>
		</tr>
		<c:forEach var="cruduser" items="${users}" varStatus="status">
			<tr class="${status.index%2==0?'even':'odd'}">
				<td class="nowrap">${cruduser.firstName}</td>
				<td class="nowrap">${cruduser.lastName}</td>
				<td class="nowrap"> 
				
				<input type="hidden" value="${cruduser.firstName} ${cruduser.lastName}" id="row${status.index}" data-uid="${cruduser.id}"/>
				<input id="select-user" type="button" value="select" class="row${status.index}"/> 
				
				</td>
				
			</tr>
		</c:forEach>



	</table>


</body>
</html>